package com.lw.kotlin_mvvm_master.view

import android.content.Intent
import android.os.Bundle
import com.lw.common.base.BaseActivity
import com.lw.kotlin_mvvm_master.databinding.ActivityMainBinding
import com.lw.kotlin_mvvm_master.view.navigation.NavigationActivity
import com.lw.kotlin_mvvm_master.view.refresh.SmartRefreshActivity
import com.lw.kotlin_mvvm_master.view.user.UserInfoActivity
import com.lw.kotlin_mvvm_master.view.webview.WebViewActivity

class MainActivity : BaseActivity<ActivityMainBinding>() {

    override fun initView(savedInstanceState: Bundle?) {
        mBinding.net.setOnClickListener {
            startActivity(Intent(this@MainActivity, UserInfoActivity::class.java))
        }
        mBinding.html.setOnClickListener {
            startActivity(Intent(this@MainActivity, WebViewActivity::class.java))
        }
        mBinding.navigation.setOnClickListener {
            startActivity(Intent(this@MainActivity, NavigationActivity::class.java))
        }
        mBinding.refresh.setOnClickListener {
            startActivity(Intent(this@MainActivity, SmartRefreshActivity::class.java))
        }
    }
}